# REPLICATION ARCHIVE

This replication archive contains all scripts and data necessary to replicate the analysis in "Who is Trusted to Navigate the Storm? Gendered Leadership Preferences in Times of Crisis", published in Electoral Studies by Lotte Hargrave (University of Manchester), Jessica C. Smith (University of Southampton), Viktor Valgarðsson (University of Iceland), Daniel Devine (University of Southampton), Hannah Bunting (University of Exeter), and Caroline Leicht (University of Manchester).

## SCRIPTS

In order to re-run the models and analysis described in the paper, you will need to execute the following files (in this order):

- 01_data_prep.R

	- Restructures the raw data from Deltapoll, creates key outcome and independent variables 

- 02_analysis_main.R

	- Creates various outputs for all plots included in the main paper 

- 03_analysis_appendix.R

	- Creates various outputs for all tables included in the appendix 

## DATA

- deltapoll_data.Rdata # Raw data from Deltapoll
- reshaped_data.Rdata # Cleaned experimental data for analysis 


## MISC

We also include a directory of intermediate outputs from the scripts listed above:

- plots/
	- 1_trait_preferences.pdf # Figure 1 from the manuscript 
	- 2_traits_crisis.pdf # Figure 2 from the manuscript 
	- 3_traits_gender.pdf # Figure 3 from the manuscript 
	- 4_gendered_traits.pdf # Figure 4 from the manuscript 
	- 5_5_gendered_traits_crisis.pdf # Figure 5 from the manuscript 

## SOFTWARE

- R # v4.4.2
- RStudio # 2024.12.0+467
- data.table # v1.16.4
- tidyverse # v2.0.0
- questionr # v0.7.8
- dplyr # v1.1.4
- broom # v1.0.7
- ggplot2 # v3.5.1
- patchwork # v1.3.0
- ggthemes # v5.1.0
- stargazer # v5.2.3
- knitr # v1.49

